<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            jQuery(function($) {
                $("#footer").load("main/footer.html");
            });
        </script>
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#index">首页</a>
        </li>
        <li class="active">商品/服务</li>
        <li class="active">库存设置</li>
    </ul>
</div>
<div class="page-content" ng-app="index" ng-controller="inventory_settings_edit">
    <div class="row">
        <div class="col-xs-12">
            <form ng-submit="inventoryUpdate(inverntoryDetails)" class="form-horizontal" role="form" id="commDeatiledForm">
                <!-- PAGE CONTENT BEGINS -->
                <div id="basediv">
                    <div class='row'>

                        </div>

                    <div class="widget-box" id="accordion">

                        <div class="widget-header">
                            <h4 class="widget-title" ng-if="outGoing">
                                <i class="menu-icon fa fa-windows"></i>
                                商品出库
                            </h4>
                            <h4 class="widget-title" ng-if="storage">
                                <i class="menu-icon fa fa-windows"></i>
                                商品入库
                            </h4>
                            <div class="widget-toolbar">
                                <a data-toggle="collapse" data-parent="#accordion"
                                   href="./comm_detailed_edit.html#collapseThree"> <i
                                        class="ace-icon fa fa-chevron-up"></i>
                                </a>
                            </div>
                        </div>
                        <div id="collapseThree">
                            <div class="widget-body">
                                <div class="widget-main" >
                                    <fieldset id="inverntoryDetailsFormFieldset">
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label no-padding-right"
                                                   for="sku"> 商品编码</label>
                                            <div class="col-sm-8">
										<span class="block input-icon input-icon-right"> <input
                                                type="text" disabled="disabled"   ng-model="inverntoryDetails.sku" id="sku" name="sku" class="form-control" value="{{ inverntoryDetails.sku }}"/>
                                            <!--<i class="orange ace-icon fa fa-warning"></i>-->
										</span>
                                            </div>
                                        </div>


                                            <div class="form-group">
                                                <label class="col-sm-1 control-label no-padding-right"
                                                       for="name">商品名称</label>
                                                <div class="col-sm-8">
										<span class="block input-icon input-icon-right" >
                                            <input type="text"  disabled="disabled"  ng-model="inverntoryDetails.name" id="name" name="name" class="form-control" value="{{ inverntoryDetails.name }}" />
										</span>
                                                </div>

                                            </div>


                                            <div class="form-group">
                                                <label class="col-sm-1 control-label no-padding-right"
                                                       for="stock">当前库存数</label>
                                                <div class="col-sm-8">
										<span class="block input-icon input-icon-right">
                                            <input type="text"  disabled="disabled"   ng-model="inverntoryDetails.stock" id="stock" name="stock" class="form-control" value="{{ inverntoryDetails.stock }}" />
										</span>
                                                </div>
                                            </div>


                                        <div class="form-group" ng-show="outGoing">

                                                <label class="col-sm-1 control-label no-padding-right"
                                                       for="outquantity">出库数量</label>
                                                <div class="col-sm-8">
                                            <span class="block input-icon input-icon-right">
                                                <input type="text"  required   ng-model="inverntoryDetails.quantity" id="outquantity" name="outquantity" class="form-control" value="{{ inverntoryDetails.quantity }}" />
                                            </span>
                                                </div>

                                        </div>

                                        <div class="form-group" ng-if="storage">

                                                <label class="col-sm-1 control-label no-padding-right"
                                                       for="quantity">入库数量</label>
                                                <div class="col-sm-8">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="text"  required   ng-model="inverntoryDetails.quantity" id="quantity" name="quantity" class="form-control" value="{{ inverntoryDetails.quantity }}" />
                                                </span>
                                                </div>

                                    </div>

                                        <div class="form-group">
                                                <label class="col-sm-1 control-label no-padding-right"
                                                       for="remarks">备注</label>
                                                <div class="col-sm-8">
                                                <span class="block input-icon input-icon-right">
                                                    <input type="text"  required   ng-model="inverntoryDetails.remarks" id="remarks" name="remarks" class="form-control" value="{{ inverntoryDetails.remarks }}" />
                                                </span>
                                                </div>
                                        </div>
                                    </fieldset>

                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <div style="margin-left:450px">
                    <button type="submit"
                            class="btn btn-app btn-warning btn-xs" id="saveButton"> <i
                            class="ace-icon fa fa-floppy-o bigger-200"></i> 提交
                    </button>
                    <a href="#" ng-click="returnList()" class="btn btn-app btn-pink btn-xs"
                       id="returnButton"> <i class="ace-icon fa fa-reply bigger-200"></i>
                        返回
                    </a>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $( "#effectDate" ).fdatepicker({
			format: 'yyyy-mm-dd',
		});
    $( "#expirdDate" ).fdatepicker({
			format: 'yyyy-mm-dd',
		});
</script>